package org.douxiaoban.client.app;

//import com.sun.crypto.provider.SunJCE;

import java.util.ArrayList;
import java.util.HashMap;

/**
 * Created by IntelliJ IDEA.
 * User: huangzhongkun
 * Date: 11-3-23
 * Time: 上午12:00
 */
public class Assistant {
    //OAUTH
//    public static final String OAUTH_API_KEY = "00dc5b5ec5745bbf0295121c505d133d";
//    										   
//    public static final String OAUTH_SECRET = "e0efcb219afc4e37";

//    public static String OAUTH_ACCESS_TOKEN_KEY = "7a60f0bf3e8d29056f22d23dbba77b0f";
//    public static String OAUTH_ACCESS_TOKEN_SECRET = "4697bc05d0ae2cdd";
   public static final String SIGNUP_DOUBAN_URL = "http://www.douban.com/accounts/register";
   public static final int WIFI = 33;
   public static final int GPRS = 34;
   //豆瓣
   public static final 
   		String DOU_BAN_PEOLE = "http://api.douban.com/people/";
   
   public static final 
   		String DOU_BAN_ICON = "http://img3.douban.com/icon/u";
	   
   //!!--
    //APP
    public static final String APP_NAME = "subApplication";

    public static final int LOGIN_SUCCESS = 1;
    public static final int LOGIN_FAIL = 0;

    //POPUP
    public static final int POPUP_SUCCESS_MESSAGE = 1;
    public static final int POPUP_FAIL_MESSAGE = 0;

    public static final int STATUS_TYPE = 19;

    //SETTING
    public static final String SHARED_DATA = "shared_data";
    public static final String SETTING_ACCESS_TOKEN_KEY = "accessTokenKey";
    public static final String SETTING_ACCESS_TOKEN_SECRET = "accessTokenSecret";
    public static final String SETTING_ACCESS_API_KEY = "apikey";
    public static final String SETTING_ACCESS_API_SECRET = "apisecret";
    public static final String SETTING_UID = "uid";
    public static final String SETTING_UNAME  = "username";

    //THREAD
    public static final int FETCH_COLLECTION_DONE = 111;
    public static final int FETCH_COLLECTION_FAIL = 110;

    public static final String LOGIN_URL = "http://www.douban.com/accounts/login";
    public static final String CAPTCHA_URL = "http://www.douban.com/misc/captcha?id=";

    public static final int FETCH_IMAGE_DONE = 114;
    public static final int FETCH_IMAGE_FAIL = 115;

    public static final int  FETCH_BOOK_READED_DONE = 118;
    public static final int  FETCH_BOOK_READED_FAIL = 119;
    public static final int  FETCH_BOOK_READING_DONE = 120;
    public static final int  FETCH_BOOK_READING_FAIL = 121;
    public static final int  FETCH_BOOK_WISH_DONE = 122;
    public static final int  FETCH_BOOK_WISH_FAIL = 123;

    public static final int FETCH_BOOK_READED_IMAGE_DONE = 130;
    public static final int FETCH_BOOK_READED_IMAGE_FAIL = 131;
    public static final int FETCH_BOOK_READING_IMAGE_DONE = 132;
    public static final int FETCH_BOOK_READING_IMAGE_FAIL = 133;
    public static final int FETCH_BOOK_WISH_IMAGE_DONE = 134;
    public static final int FETCH_BOOK_WISH_IMAGE_FAIL = 135;

    public static final int FETCH_SUBJECT_DONE = 140;
    public static final int FETCH_SUBJECT_FAIL = 141;

    public static final int FETCH_RECOMMEND_PUBLISH_DONE = 145;
    public static final int FETCH_RECOMMEND_PUBLISH_FAIL = 146;

    public static final int FETCH_SUBJECT_REVIEW_DONE = 147;
    public static final int FETCH_SUBJECT_REVIEW_FAIL = 148;

    public static final int FETCH_PUBLISH_REVIEW_DONE = 150;
    public static final int FETCH_PUBLISH_REVIEW_FAIL = 151;

    public static final int FETCH_REVIEW_FULL_DONE = 152;
    public static final int FETCH_REVIEW_FULL_FAIL = 153;

    public static final int FETCH_REVIEW_AVATAR_DONE = 154;

    public static final int FETCH_USER_COLLECTION_DONE = 160;
    public static final int FETCH_USER_COLLECTION_FAIL = 161;

    public static final int FETCH_UPDATE_COLLECTION_DONE = 162;
    public static final int FETCH_UPDATE_COLLECTION_FAIL = 163;

    public static final int FETCH_SEARCH_DONE = 165;
    public static final int FETCH_SEARCH_FAIL = 166;

    public static final int FETCH_PARSER_TOP_DONE = 170;
    public static final int FETCH_PARSER_TOP_FAIL = 171;

    public static final int FETCH_USER_DATA_DONE = 199;
    public static final int FETCH_USER_DATA_FAIL =  200;

    public static final int FETCH_CREATE_COLLECTION_DONE = 299;
    public static final int FETCH_CREATE_COLLECTION_FAIL = 300;

    //TAG
    public static final String KEY_OF_COLLECTION = "collection";
    public static final String KEY_OF_IMAGE = "image";
    public static final String KEY_OF_POSITION = "position";
    public static final String KEY_OF_SUBJECT = "subjectback";
    public static final String KEY_OF_MY_SUBJECT_RATTING = "ratting";
    public static final String KEY_OF_MY_SUBJECT_TYPE = "type";
    public static final String KEY_OF_MY_SUBJECT_SUMMARY ="summary";
    public static final String KEY_OF_MY_SUBJECT_TAG = "tag";
    public static final String KEY_OF_SUMMARY = "";

    public static final String KEY_OF_KEYWORD = "keyword";
    public static final String KEY_OF_TYPE = "type";
    public static final String KEY_OF_ISBN = "isbn";

    public static final String KEY_OF_INTENT_ID = "id";
    public static final String KEY_OF_INTENT_CATEGORY = "category";
    public static final String KEY_OF_SUBJECT_REVIEW = "review";

    //STATUS
    public static final String STATUS_BOOK_WISH = "wish";
    public static final String STATUS_BOOK_READING = "reading";
    public static final String STATUS_BOOK_READED = "read";

    public static final String STATUS_MOVICE_WISH= "wish";
    public static final String STATUS_MOVICE_WATCHED = "watched";

    public static final String STATUS_MUSIC_WISH = "wish";
    public static final String STATUS_MUSIC_LINSTENING = "listening";
    public static final String STATUS_MUSIC_LISTENED = "listened";
    public static final String STATUS_BOOK = "book";
    public static final String STATUS_BOOK_ISBN = "bookisbn";
    public static final String STATUS_MUSIC = "music";
    public static final String STATUS_MOVICE = "movie";

    public static final String AD_YOUMI_KEY = "3169379c50f0428c";
    public static final String AD_YOUMI_SCRET = "1a8aeac7d0f357d6";

    //MSG
    public static final String THREAD_IMAGE_MSG = "thread_image_msg";
    public static final String THREAD_IMAGE_KEY = "thread_image_key";

    //COUNT
    public static final int PAGE_SIZE= 15;

    //INDEX
    public static final int BOOK_INDEX_READED = 0;
    public static final int BOOK_INDEX_READING = 1;
    public static final int BOOK_INDEX_WISH = 2;

    public static  HashMap<String,String> SUBJECT_BOOK_MAP = new HashMap<String,String>();
    public static HashMap<String,Integer> SUBJECT_BOOK_POSITON = new HashMap<String,Integer>();



    static {
        SUBJECT_BOOK_MAP.put("isbn10","ISBN10:");
        SUBJECT_BOOK_MAP.put("isbn13","ISBN13:");
        SUBJECT_BOOK_MAP.put("title","标题:");
        SUBJECT_BOOK_MAP.put("pages","页数:");
        SUBJECT_BOOK_MAP.put("publisher","出版社:");
        SUBJECT_BOOK_MAP.put("author","作者:");
        SUBJECT_BOOK_MAP.put("subtitle","副标题:");
        SUBJECT_BOOK_MAP.put("price","价格:");
        SUBJECT_BOOK_MAP.put("binding","装订:");
        SUBJECT_BOOK_MAP.put("pubdate","上市日期:");
        SUBJECT_BOOK_MAP.put("author-intro","作者简介:");
        SUBJECT_BOOK_MAP.put("translator","译者:");
        SUBJECT_BOOK_MAP.put("aka","又名:");
        SUBJECT_BOOK_MAP.put("movie_duration","故事简介:");
        SUBJECT_BOOK_MAP.put("website","官方网站:");
        SUBJECT_BOOK_MAP.put("country","国家:");
        SUBJECT_BOOK_MAP.put("writer","编剧:");
        SUBJECT_BOOK_MAP.put("director","导演:");
        SUBJECT_BOOK_MAP.put("movie_type","动作");
        SUBJECT_BOOK_MAP.put("language","语言:");
        SUBJECT_BOOK_MAP.put("cast","主演:");
        SUBJECT_BOOK_MAP.put("discs","唱片数:");
        SUBJECT_BOOK_MAP.put("isrc","条型码:");
        SUBJECT_BOOK_MAP.put("ean","ean:");
        SUBJECT_BOOK_MAP.put("version","专辑:");
        SUBJECT_BOOK_MAP.put("singer","表演者:");
        SUBJECT_BOOK_MAP.put("media","介质:");
        SUBJECT_BOOK_MAP.put("track","曲目:");


    }

      static {
        SUBJECT_BOOK_POSITON.put("isbn10",9);
        SUBJECT_BOOK_POSITON.put("isbn13",8);
        SUBJECT_BOOK_POSITON.put("title",0);
        SUBJECT_BOOK_POSITON.put("pages",5);
        SUBJECT_BOOK_POSITON.put("publisher",3);
        SUBJECT_BOOK_POSITON.put("author",1);
        SUBJECT_BOOK_POSITON.put("price",6);
        SUBJECT_BOOK_POSITON.put("binding",7);
        SUBJECT_BOOK_POSITON.put("pubdate",4);
        SUBJECT_BOOK_POSITON.put("author-intro",10);
        SUBJECT_BOOK_POSITON.put("translator",2);
    }

    public static HashMap<String,String> SUBJECT_MY_STATUS = new HashMap<String,String>();
    static {
        SUBJECT_MY_STATUS.put("read","我读过这本书");
        SUBJECT_MY_STATUS.put("wish","我想读这本书");
        SUBJECT_MY_STATUS.put("reading","我正在读这本书");
     }

    public static HashMap<Integer,String> SUBJECT_RATING_DESC = new HashMap<Integer,String>();
    static {
        SUBJECT_RATING_DESC.put(1,"很差");
        SUBJECT_RATING_DESC.put(2,"较差");
        SUBJECT_RATING_DESC.put(3,"还行");
        SUBJECT_RATING_DESC.put(4,"推荐");
        SUBJECT_RATING_DESC.put(5,"力荐");
    }



    //---------------------------by 6a209------------------------------------
    
    //1 用户主页 index------
    public static final int HOME_INDEX_INFO = 0;
    public static final int HOME_INDEX_MINIBLOG = 1;
    public static final int HOME_INDEX_CONTACTS = 2; //关注列表
    public static final int HOME_INDEX_FRIEND = 3;   //好友列表~
    
    public static final String KEY_INDEX = "key_index";

    //--1
    
    public static final String TOOLS_KEY_CONTACTS = "userList";
    public static final int TOOLS_MSG_CONTACTS = 5000;

    public static final String TOOLS_KEY_FRIENDS = "friends";
    public static final int TOOLS_MSG_FRIENDS = 5010;

    public static final String TOOLS_KEY_AVATAR = "toolsAvatar";
    public static final String TOOLS_KEY_POSITION = "toolsPositon";
    public static final String TOOLS_KEY_MINIBLOG = "miniblog";
    public static final String TOOLS_KEY_USER_INFO = "userInfo";
    public static final String TOOLS_KEY_IMAGE = "image";
    public static final String TOOLS_KEY_SAYING = "saying";
    public static final String TOOLS_KEY_REV = "rev";
    public static final String TOOLS_KEY_DEL = "del";
    public static final String TOOLS_KEY_INBOX = "inbox";
    public static final String TOOLS_KEY_OUTBOX = "outbox";
    public static final String TOOLS_KEY_ONE_MAIL = "oneMail";
    public static final String KEY_MAIL_ID ="mail_id";
    public static final String KEY_IS_INBOX = "isInbox";
    public static final String KEY_MAIL_INDEX = "mailIndex";




    public static final int TOOLS_MSG_AVATAR = 1000;
    public static final int TOOLS_MSG_MINIBLOG = 1010;
    //刷新
    public static final int TOOLS_MSG_MINIBLOG_RE = 1011;
    public static final int TOOLS_MSG_USINFO = 1020;
    public static final int TOOLS_MSG_IMAGE = 1030;
    public static final int TOOLS_MSG_SAYING = 1040;
    public static final int TOOLS_MSG_REV = 1050;
    public static final int TOOLS_MSG_DEL = 1060;
    public static final int TOOLS_MSG_INBOX = 1070;
    public static final int TOOLS_MSG_INBOX_RE = 1071;
    public static final int TOOLS_MSG_OUTBOX = 1080;
    public static final int TOOLS_MSG_OUTBOX_RE = 1081;
    public static final int TOOLS_MSG_ONE_MAIL = 1090;
    
    //7.16 重构
    public static final int MSG_DOUBAN_LIST_DATA = 2000;
    public static final String KEY_DOUBAN_LIST_DATA = "doubanlist";
    //----7.16

    public static final String KEY_USER_NAME = "userName";
    public static final String KEY_USER_ID = "userId";
    public static final String KEY_CAPTCHA_TOKEN = "token";
    public static final String KEY_CAPTCHA_URL = "ca_url";
    public static final String KEY_SUCCESS = "success";
    

    //豆油发送状态，成功，不成功，需要验证码！！
    public static final int MSG_SUCCESS = 1100;
    public static final int MSG_UN_SUCCESS = 1110;
    public static final int MSG_NEED_CAPTCHA = 1120;
    
    public static final int MSG_DEL_MAIL = 1130;
    
    public static final int NEED_UPDATE = 1140;
    public static final int UN_NEED_UPDATE = 1150;
    
    //删除豆邮的resulte code
    public static final int DEL_MAIL_SUCCESS = 1160;
    public static final int DEL_MAIL_UN_SUCCESS = 1161;
    
    //发送豆油的resulte code
	public static final int REQ_REP_CODE = 100;
	public static final int REP_SUCCESS = 110;
	public static final int REP_UN_SUCCESS = 120;
    
    //pupupWindow show toast type .....
    public static final int SUCCESS_POP = 1;
    public static final int FAIL_POP = 0;

    private static ArrayList<HashMap<String,String>> API_KEY_LIST
            = new ArrayList<HashMap<String, String>>();



}
